import request from '@/util/request';

//获取用户数量
export const getAllUserNum = async () => {
    return request.get('/manager/data/profile/getAllUserNum'
        //     ,{
        //      headers: {
        //         'Authorization': `Bearer ${localStorage.getItem('managerToken')}`
        //     }
        // }
    );
};
//获取企业数量
export const getCompanyNum = async () => {
    return request.get('/manager/data/profile/getCompanyNum');
};

export const getActivePositions = async() => {
    return request.get('/manager/data/profile/getActivePositions')
};
//获取简历数
export const getCVNum = async() => {
    return request.get('/manager/data/profile/getResumeDelivers')
};
// // 获取所有求职者信息
// const getSeekerInfo= async () => {
//     try {
//         const response = await request({
//             url: ``
//         })
//     }
// }


// export const getPostById = async (postId) => {
//   try {
//     const response = await request({
//       url: `/community/posts/${postId}`,
//       method: 'get'
//     });
//     return response.data;
//   } catch (error) {
//     throw new Error(`获取帖子 #${postId} 失败`);
//   }
// };



